package com.hejing.project03_优尚开发团队人员调度系统.domain;

import com.hejing.project03_优尚开发团队人员调度系统.service.Status;

/**
 * ClassName: Programmer
 * Package: com.hejing.project03_优尚开发团队人员调度系统.domain
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-04-12 11:03
 * @Version: 1.0
 */
public class Programmer extends Employee {

    // 属性
    private int memberId;           // 开发团队人员id
    private Status status = Status.FREE;   // 开发团队人员状态
    private Equipment equipment;    // 开发团队成员使用的设备

    // 构造器
    public Programmer() {
    }

    public Programmer(int id, String name, int age, double salary, Equipment equipment) {
        super(id, name, age, salary);
        this.equipment = equipment;
    }

    // get set


    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public Equipment getEquipment() {
        return equipment;
    }

    public void setEquipment(Equipment equipment) {
        this.equipment = equipment;
    }

    // toString
    @Override
    public String toString(){
        return getDetails() + "\t程序员\t" + status + "\t\t\t\t\t" + equipment.getDescription();
    }

    public String getBasicDetailsForTeam() {
        return memberId + "/" + getId() + "\t" + getName() + "\t" + getAge() +
                "\t" + getSalary() + "\t";
    }
    public String getDetailsForTeam() {
        return getBasicDetailsForTeam() + "程序员";
    }

}























